package com.comverse.ldap.web.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.comverse.ldap.web.business.TestBusiness;

@Controller(value="ldapSheetController")
@RequestMapping("/result_ldap.do")
public class ResultController {
	@Resource(name="TestBusinessLdap")
	private TestBusiness testBusiness=null;
	
	public TestBusiness getTestBusiness() {
		return testBusiness;
	}
	public void setTestBusiness(TestBusiness testBusiness) {
		this.testBusiness = testBusiness;
	}

	@RequestMapping
	public String viewUser(HttpServletRequest request, ModelMap modelMap)
			throws Exception {
		System.err.println("$$$$$$$$$$$$$$$$$$$$$you want to check the result.jsp+++++++++++++");
		System.err.println("$$$$$$$$$$$$$$$$$$$$$ ready to insert   +++++++++++++");
		testBusiness.add();
		System.err.println("$$$$$$$$$$$$$$$$$$$$$ insert completed +++++++++++++");
		return "components";
	}
}
